import cv2
img = cv2.imread('tutu.jpg')
dst1 = cv2.resize(img,None,fx=2,fy=2)
dst2 = cv2.resize(img,None,fx=1/3,fy=1/2)
dst3 = cv2.resize(img,(200,200))
try:
    print('over')
    cv2.imshow('Input',img)
    cv2.imshow('Resize1',dst1)
    cv2.imshow('Resize2',dst2)
    cv2.imshow('Resize3',dst3)
    cv2.waitKey()
except:
    cv2.destroyWindow()
    print('0')